package com.example.demo.study.beanLifcycle;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class Main {
    public static void main(String[] args) {
        // spring轻量级框架，独立运行Spring容器，无需应用服务器
//        AnnotationConfigApplicationContext context=new AnnotationConfigApplicationContext(LifeCycleConfig.class);
//        LifeCycleBean lifeCycleBean=context.getBean(LifeCycleBean.class);
//        lifeCycleBean.execute();
//        context.close();
    }
}
